package com.xinzhi.service;

import com.xinzhi.utlis.Result;
import com.xinzhi.pojo.User;

import javax.servlet.http.HttpSession;

public interface IUserService {
    //新增
    Result insert(String phonenumber, String password);
    //发送短信验证码
    boolean send(String phonenumber,String templateCode,String code);
    //验证码登录
    Result logincode(String phonenumber,String password);
    //手机号密码登录
    Result loginpassword(String phonenumber,String password);
    //忘记密码
    Result forgetpassword(String phonenumber,String onepassword,String twopassword);
    //修改密码
    Result updatepassword(User user,HttpSession session);
}
